Integrand size = 24, antiderivative size = 29 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=\frac {\tan (c+d x)}{d \left (a^2+i a^2 \tan (c+d x)\right )^2} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3568, 34} \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=\frac {\tan (c+d x)}{d \left (a^2+i a^2 \tan (c+d x)\right )^2} \]
[In]
[Out]
Rule 34
Rule 3568
Rubi steps \begin{align*} \text {integral}& = -\frac {i \text {Subst}\left (\int \frac {a-x}{(a+x)^3} \, dx,x,i a \tan (c+d x)\right )}{a^3 d} \\ & = \frac {\tan (c+d x)}{d \left (a^2+i a^2 \tan (c+d x)\right )^2} \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.24 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=\frac {i (i+\tan (c+d x))^2}{4 a^4 d (-i+\tan (c+d x))^2} \]
[In]
[Out]
Time = 0.45 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.66
method | result | size |
risch | \(\frac {i {\mathrm e}^{-4 i \left (d x +c \right )}}{4 a^{4} d}\) | \(19\) |
derivativedivides | \(\frac {-\frac {i}{\left (\tan \left (d x +c \right )-i\right )^{2}}-\frac {1}{\tan \left (d x +c \right )-i}}{a^{4} d}\) | \(36\) |
default | \(\frac {-\frac {i}{\left (\tan \left (d x +c \right )-i\right )^{2}}-\frac {1}{\tan \left (d x +c \right )-i}}{a^{4} d}\) | \(36\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.59 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=\frac {i \, e^{\left (-4 i \, d x - 4 i \, c\right )}}{4 \, a^{4} d} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 95 vs. \(2 (24) = 48\).
Time = 1.17 (sec) , antiderivative size = 95, normalized size of antiderivative = 3.28 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=\begin {cases} \frac {i \sec ^{4}{\left (c + d x \right )}}{4 a^{4} d \tan ^{4}{\left (c + d x \right )} - 16 i a^{4} d \tan ^{3}{\left (c + d x \right )} - 24 a^{4} d \tan ^{2}{\left (c + d x \right )} + 16 i a^{4} d \tan {\left (c + d x \right )} + 4 a^{4} d} & \text {for}\: d \neq 0 \\\frac {x \sec ^{4}{\left (c \right )}}{\left (i a \tan {\left (c \right )} + a\right )^{4}} & \text {otherwise} \end {cases} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 66 vs. \(2 (27) = 54\).
Time = 0.22 (sec) , antiderivative size = 66, normalized size of antiderivative = 2.28 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=-\frac {\tan \left (d x + c\right )^{2} - i \, \tan \left (d x + c\right )}{{\left (a^{4} \tan \left (d x + c\right )^{3} - 3 i \, a^{4} \tan \left (d x + c\right )^{2} - 3 \, a^{4} \tan \left (d x + c\right ) + i \, a^{4}\right )} d} \]
[In]
[Out]
none
Time = 0.62 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.52 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=-\frac {2 \, {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{a^{4} d {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - i\right )}^{4}} \]
[In]
[Out]
Time = 3.91 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.86 \[ \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^4} \, dx=-\frac {\mathrm {tan}\left (c+d\,x\right )}{a^4\,d\,{\left (\mathrm {tan}\left (c+d\,x\right )-\mathrm {i}\right )}^2} \]
[In]
[Out]